import axios from "axios"

// const baseURL = "http://124.220.235.81:8880/";
// const baseURL = "http://124.220.235.81:8880/";
const baseURL = "http://134.122.130.178:8880/";
// const baseURL = "https://2023.online-help.cn/";

let http = axios.create({
    // baseURL: "https://api.online-help.cn/",
    baseURL: baseURL,
    timeout: 100000
});


http.interceptors.request.use( (config) => {
    let headers = {
        // token: 'f3936b9a8eaa0b3efca4e2f654366e25'
        token: localStorage.getItem('token')
    }
    config.headers = headers
    return config;
},function (error) {

},{});

export{
    http,
    baseURL
}
